﻿namespace KingerRobot.MexicoSailunMDC.SpiService;
internal interface IWmsEquipErrs
{
    /// <summary>
    /// 查找没有结束的报警
    /// </summary>
    /// <param name="equipId"></param>
    /// <param name="alarmNo"></param>
    /// <returns></returns>
    POWmsEquipErr GetNotFinishEquipErr(long equipId, int alarmNo);

    /// <summary>
    /// 修改其他报警数据 end_time
    /// </summary>
    /// <param name="equipId"></param>
    /// <returns></returns>
    int UpdateFinishEquipErr(long equipId);

    /// <summary>
    /// 添加报警
    /// </summary>
    /// <param name="equipId"></param>
    /// <param name="alarmNo"></param>
    /// <returns></returns>
    int AddEquipErr(long equipId, int alarmNo);
    /// <summary>
    /// 添加报警信息 包含报警编号
    /// </summary>
    /// <param name="equipId"></param>
    /// <param name="alarmNo"></param>
    /// <param name="alarmCode"></param>
    /// <param name="alarmMsg"></param>
    /// <returns></returns>
    int AddEquipErr(long equipId, int alarmNo, string alarmCode, string alarmMsg);
    /// <summary>
    /// 添加报警 包含流水号
    /// </summary>
    /// <param name="equipId"></param>
    /// <param name="alarmNo"></param>
    /// <param name="alarmCode"></param>
    /// <param name="alarmMsg"></param>
    /// <param name="taskNo"></param>
    /// <param name="taskNo2"></param>
    /// <returns></returns>
    int AddEquipErrV2(long equipId, int alarmNo, string alarmCode, string alarmMsg, int? taskNo);
    /// <summary>
    /// 添加报警 包含两个流水号
    /// </summary>
    /// <param name="equipId"></param>
    /// <param name="alarmNo"></param>
    /// <param name="alarmCode"></param>
    /// <param name="alarmMsg"></param>
    /// <param name="taskNo"></param>
    /// <param name="taskNo2"></param>
    /// <returns></returns>
    int AddEquipErrV3(long equipId, int alarmNo, string alarmCode, string alarmMsg, int? taskNo, int? taskNo2);
}
